<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0" />
	<title>案件查看</title>
	<link type="text/css" rel="stylesheet" href="__PUBLIC__/mobile/css/style.css" />
	<link href="__PUBLIC__/mobile/css/mui.min.css" rel="stylesheet"/>
    <link href="__PUBLIC__/mobile/css/sty.css" rel="stylesheet"/>
    <script type="text/javascript" src="__PUBLIC__/mobile/js/mui.min.js"></script>
    <script src="__PUBLIC__/admin/js/jquery-1.12.3.min.js" type="text/javascript" charset="utf-8"></script>
    <style type="text/css">
    	.xperMess{font-size: 15px;}
		.xperMess .xmessLast {
		    margin-right: 0.2vh;
		    color: #000;
		}
	</style>
</head>
<body style="background-color: #fff;">
	<header class="mui-bar mui-bar-nav">
        <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
        <h1 class="mui-title">案件查看</h1>
    </header>
    <div class="mui-content">
        <div class="xChoseTime">
			<select class="xSeleTime" name="ktime" id="ttt">
				<foreach name="notes" item="notes">
					<option value="<{$notes['id']}>"><{$notes['table_name']}></option>
				</foreach>
			</select>
		</div>
		<!-- 年份改变js 开始 -->
		<script type="text/javascript">
		    function year(){
		    	var notes_id = $('#ttt').val();
		    	$.ajax({
		    		url: "<{:U('case/anjian')}>",
		    		type: 'post',
		    		data: {id:notes_id},
		    		success:function(mes){
		    			// alert(mes);
		    			$('.xperMess').remove();
		    			$('.card_div').remove();
		    			$('.xtableCon').remove();
		    			$('#aaa').html(mes);
		    		}
		    	});
		    }
		    $('#ttt').change(function(){
		    	year();
		    });
		</script>
		<!-- 年份改变js 结束 -->
		<p class="xperMess">
	        <span class="xmessFirst">姓名：</span><span class="xmessLast"><{:idtoname('worker_id','worker','worker_name',$worker_id)}></span>
	        <span class="xmessFirst">总案件：</span><span class="xmessLast"><{$number1}>件</span>
	        <span class="xmessFirst">已结案：</span><span class="xmessLast"><{$number2}>件</span>
	        <span class="xmessFirst">未结案：</span><span class="xmessLast"><{$number3}>件</span>
        </p>
        <div class="card_div">
			<span style="width: 20%;padding-left: 4%;text-align: left;">编号</span>
			<span style="width: 50%;text-align: center;">案件案由</span>
			<span style="width: 20%;text-align: center;">案件状态</span>
		</div>
		<div class="xtableCon">
			<foreach name="list" item="vo" key="k" > 
				<div class="line">
					<span class="xtableScore"><{$k+1}></span>
					<span class="xtableName"><{$vo['case_name2']}></span>
					<if condition="$vo['stime'] == '' ">
						<span class="xtableScore">未结案</span>
					<else /> 
						<span class="xtableScore">已结案</span>
					</if>
				</div>
			</foreach>
		</div>
		<div id="aaa"></div>
	</div>
</body>
</html>